package com.lnking.lnkingplace.model.dto.inspect;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lnking.lnkingplace.model.dto.rectification.RectificationDto;
import com.lnking.lnkingplace.model.entity.Rectification;
import com.lnking.lnkingplace.model.entity.User;
import com.lnking.starter.mybatis.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 联坤
 */
@Data
public class InspectDetailDto extends BaseEntity {

    @ApiModelProperty(value = " 方案名称")
    private String name;

    @ApiModelProperty(value = "参与组（;隔开）")
    private String groupNames;

    @ApiModelProperty(value = "参与人员名字")
    private List<UserByGroup> userNameList;


    @ApiModelProperty(value = "目标场所id（;隔开）")
    private String placeIds;

    @ApiModelProperty(value = "检查结果")
    List<InspectToPlaceDto> placeList;

    @ApiModelProperty(value = "检查日期")
  @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private LocalDate inspectTime;

    @ApiModelProperty(value = "创建日期")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人id")
    private String createId;

    @ApiModelProperty(value = "创建人")
    private String createName;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "图片")
    private String photos;

}
